using System.Threading.Tasks;
using JNPF.Utils;
using System.Collections.Generic;
using JNPF.Basics.Models;

namespace JNPF.Basics.Logic
{
    public interface PartnerIService
    {
        /// <summary>
        /// 获取信息
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns></returns>
        Task<PartnerEntity> GetInfo(int id);

        /// <summary>
        /// 获取信息
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns></returns>
        Task<PartnerEntity> GetInfoByMobilePhone(string mobilePhone);

        /// <summary>
        /// 列表(分页)
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        Task<PageResult<PartnerEntity>> GetPageList(PartnerListQueryInput input);


        /// <summary>
        /// 列表（分页）
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        Task<PageResult<PartnerUpOutput>> GetPageListBySql(PartnerListQueryInput input);

        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Create(PartnerEntity entity);

        /// <summary>
        /// 审核合伙人
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task Create(PartnerEntity baseEntity, UserEntity entity, List<UserRelationEntity> userRelationList, UserextendEntity userextendEntity, NewneedsEntity newneedsEntity);


        /// <summary>
        /// 审核合伙人添加
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task CreateInsert(PartnerEntity baseEntity, UserEntity entity, List<UserRelationEntity> userRelationList, UserextendEntity userextendEntity, NewneedsEntity newneedsEntity);


        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Update(PartnerEntity entity);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Delete(PartnerEntity entity);

        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        Task<List<PartnerEntity>> GetList(PartnerListQueryInput input);


    }
}
